package com.kecheng.xinmei.controller;

import com.kecheng.xinmei.entity.User;
import com.kecheng.xinmei.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/user")
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping(value = "/get_user")
    public User get(){
        return userService.getUser();


    }
}
